<?php
	Forms::start("register","profile","user","0","create");
	Fields::startGroup("details",array('legend'=>"Details",'accesskey'=>"D"));
	Fields::text("user","username","20","MyUserName",
					array(	'label'=>"Username",
							'tooltip'=>"Your username must contain uppercase and lowercase charaters with some numerical characters too.",
							'help'=>"Your username must contain uppercase and lowercase charaters with some numerical characters too.",
							'accesskey'=>"U"));
	Fields::text("user","firstname","30","My firstname",
					array(	'label'=>"Firstname",
							'tooltip'=>"Fill your common firstname",
							'help'=>"Fill your common firstname",
							'accesskey'=>"F"));
	Fields::text("user","lastname","40","My lastname",
					array(	'label'=>"Lastname",
							'tooltip'=>"Fillin your lastname",
							'help'=>"Fillin your lastname",
							'accesskey'=>"L"));
	Fields::password("user","password","20","mypassword",
					array(	'label'=>"Create your Password",
							'tooltip'=>"Type your own password.",
							'help'=>"Create your own password. At least 6 charaters, and a most of 20 characters including all symbols.",
							'accesskey'=>"V"));
	Fields::password("user","verifypassword","20","mypasswordagain",
					array(	'label'=>"the Password again",
							'tooltip'=>"Fill again your password for verification purpose.",
							'help'=>"Fill again your password for verification purpose.",
							'accesskey'=>"V"));
	Fields::separator();
	Fields::image("user","avatar","","",
					array(	'label'=>"User Avatar",
							'tooltip'=>"You current image used as avatar",
							'help'=>"",
							'default'=>"webapp/media/avatars/default.png"));
	Fields::file("user","avatar","20","",
					array(	'label'=>"Avatar (Image)",
							'tooltip'=>"Select an image",
							'help'=>"Feel free to choose your own avatar on this site.",
					'accesskey'=>"A"));					
	Fields::separator();
	Fields::text("user","mail","40","myemail@myprovider.com",
					array(	'label'=>"Mail",
							'tooltip'=>"Fill your own email",
							'help'=>"Fill your own email",
							'accesskey'=>"M"));
	Fields::text("user","verifymail","40","myemail@myprovider.com",
					array(	'label'=>"Verify mail",
							'tooltip'=>"Fill again your your own email for verification purpose.",
							'help'=>"Fill again your your own email for verification purpose.",
							'accesskey'=>"V"));
	Fields::separator();
	echo Html::link("home","list","category","0",
			__("profile","back_home"), 
			array(	'description'=>__("profile","back_home_title"),
					'image'=>"webapp/images/icons/pie.gif",
					'styleclass'=>"smallbutton")
		);
 
	Fields::submit("Register",
					array(	'styleclass'=>"smallbutton",
							'accesskey'=>"R",
							'title'=>"Register your data into our site to create your own user account"));
	Fields::endGroup("details");	
	Forms::end("register");
?>